using System;
using System.Collections.Generic;
using System.Text;

namespace NetSpider.Retrieval
{
    public class ContentTree : IContentTree
    {
        private IContentNode _rootNode;

        public static IContentTree Create(IFetchResult fetchResult)
        {
            return new ContentTree(fetchResult);
        }

        private ContentTree(IFetchResult fetchResult)
        {
            _rootNode = ContentNode.Create(this, fetchResult);
        }

        public IContentNode GetRootNode()
        {
            return _rootNode;
        }

        public int GetNodeCount()
        {
            throw new NotImplementedException();
        }

        public IContentNode FindNode(string uri)
        {
            return ContentNode.Null;
        }
    }
}
